package com.ktwlrj.core.base;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * member base model 实体(公共字段)
 *
 * @author zhouxuanhong
 * @date 2019-04-03 16:01
 * @since JDK1.8
 */
@Getter
@Setter
@ToString
public class SuperEntity extends Model implements Serializable {

    private static final long serialVersionUID = -5252166820579787976L;

    @ApiModelProperty(name = "createTime", value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(name = "createUser", value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createUser;

    @ApiModelProperty(name = "createUserName", value = "创建人姓名")
    @TableField(fill = FieldFill.INSERT)
    private String createUserName;

    @ApiModelProperty(name = "modifyTime", value = "更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private Date modifyTime;

    @ApiModelProperty(name = "modifyUser", value = "更新人")
    @TableField(fill = FieldFill.UPDATE)
    private String modifyUser;

    @ApiModelProperty(name = "modifyUserName", value = "更新人姓名")
    @TableField(fill = FieldFill.UPDATE)
    private String modifyUserName;

    @ApiModelProperty(name = "deleteMark", value = "删除状态:0-未删除,1-已删除,默认0")
    @TableLogic
    private Integer deleteMark;

    @ApiModelProperty(name = "remark", value = "备注")
    private String remark;
}